package net.gq.logistics.service.serviceimpl;

import net.gq.logistics.mapper.CustomerMapper;
import net.gq.logistics.pojo.Customer;
import net.gq.logistics.pojo.CustomerExample;
import net.gq.logistics.service.CustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ASUS
 * @date 2020/5/26
 */
@Service("customerService")
public class CustomerServiceImpl implements CustomerService {


    @Resource(name = "customerMapper")
    private CustomerMapper customerMapper;

    @Override
    public int deleteByPrimaryKey(Long customerId) {
        return customerMapper.deleteByPrimaryKey(customerId);
    }

    @Override
    public int insert(Customer record) {
        return customerMapper.insert(record);
    }

    @Override
    public int insertSelective(Customer record) {
        return customerMapper.insertSelective(record);
    }

    @Override
    public List<Customer> selectByExample(CustomerExample example) {
        return customerMapper.selectByExample(example);
    }

    @Override
    public Customer selectByPrimaryKey(Long customerId) {
        return customerMapper.selectByPrimaryKey(customerId);
    }

    @Override
    public int updateByPrimaryKeySelective(Customer record) {
        return customerMapper.updateByPrimaryKeySelective(record);
    }
}
